package moodish.comm;

import java.io.Serializable;

public class ServerSide implements ServerSideMessage, Serializable {
	

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String nick_name;
	private Type type;
	private String payload;
	
	public ServerSide(String nick_name, String payload, Type type) {
		this.nick_name = nick_name;
		this.type = type;
		this.payload = payload;
	}

	@Override
	public Type getType() {
		return type;
	}

	@Override
	public String getPayload() {
		return payload;
	}

	@Override
	public String getClientNickname() {
		return nick_name;
	}

}
